package com.yincheng.oms.bussiness.order;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yincheng.oms.bussiness.order.entity.OrderLog;
import com.yincheng.oms.bussiness.util.excel.ExcelFieldTitle;

public class OrderExcel {

	private String orderId;

	@ExcelFieldTitle(value="订单编号",width="20")
	private String orderNo;

	@ExcelFieldTitle(value="平台",width="20")
	private String orderSource;

//	private String orderStatus;

	@ExcelFieldTitle(value="购买人姓名",width="20")
	private String customerName;

	@ExcelFieldTitle(value="购买人电话",width="50")
	private String customerPhone;

	@ExcelFieldTitle(value="收件人姓名",width="20")
	private String receiverName;

	@ExcelFieldTitle(value="收件人电话",width="50")
	private String receiverPhone;

	@ExcelFieldTitle(value="收件人地址",width="100")
	private String receiverAddress;

	@ExcelFieldTitle(value="下单时间",width="40",type="date")
	@JsonFormat(timezone="GMT+8:00", pattern="yyyy-MM-dd HH:mm:ss")
	private Date orderCreateTime;

	@ExcelFieldTitle(value="付款时间",width="40",type="date")
	@JsonFormat(timezone="GMT+8:00", pattern="yyyy-MM-dd HH:mm:ss")
	private Date orderPayTime;
	
	@ExcelFieldTitle(value="订单日志状态",width="20")
	private String logStatusVal;
	
	@ExcelFieldTitle(value="操作日志",width="200",type="list")
	private List<OrderLog> orderLogs;
	
	public String getOrderNo() {
		
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getOrderSource() {
		return orderSource;
	}

	public void setOrderSource(String orderSource) {
		this.orderSource = orderSource;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getCustomerPhone() {
		return customerPhone;
	}

	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}

	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public String getReceiverPhone() {
		return receiverPhone;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}

	public String getReceiverAddress() {
		return receiverAddress;
	}

	public void setReceiverAddress(String receiverAddress) {
		this.receiverAddress = receiverAddress;
	}

	public Date getOrderCreateTime() {
		return orderCreateTime;
	}

	public void setOrderCreateTime(Date orderCreateTime) {
		this.orderCreateTime = orderCreateTime;
	}

	public Date getOrderPayTime() {
		return orderPayTime;
	}

	public void setOrderPayTime(Date orderPayTime) {
		this.orderPayTime = orderPayTime;
	}

	public String getLogStatusVal() {
		return logStatusVal;
	}

	public void setLogStatusVal(String logStatusVal) {
		this.logStatusVal = logStatusVal;
	}

	public List<OrderLog> getOrderLogs() {
		return orderLogs;
	}

	public void setOrderLogs(List<OrderLog> orderLogs) {
		this.orderLogs = orderLogs;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

}
